﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using MediawikiSPMigratorClass;

namespace MediawikiSPMigratorTests
{
    [TestClass]
    public class MappingDataTests
    {
        [TestMethod]
        public void GetMappingDetailsTest()
        {
            MappingData mapping = new MappingData();
            XElement actual = mapping.GetMappingDetails("Application");
            int expectedFieldCount = 14;
            
            Assert.IsTrue(actual.Descendants().Count() == expectedFieldCount);
        }
    }
}
